#!/bin/sh




#android 在liunx编译 ffmpeg
# 1下载 gcc 编译库
git clone https://bitbucket.org/multicoreware/x265_git.git

wget https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r23c-linux.zip
wget https://dl.google.com/android/repository/android-ndk-r24-linux.zip
wget https://dl.google.com/android/repository/android-ndk-r25c-linux.zip
wget https://dl.google.com/android/repository/android-ndk-r26d-linux.zip
wget https://googledownloads.cn/android/repository/android-ndk-r27-linux.zip






unzip /mnt/nas/work/make/ffmpeg/android/ffmpeg/tar/android-ndk-r21e-linux-x86_64.zip -d ./


rm -rf /mnt/nas/work/make-ffmpeg/android/ndk/android-ndk-r21e
unzip android-ndk-r25c-linux.zip -d ./

unzip android-ndk-r21e-linux-x86_64.zip -d ./

#git clone https://gitee.com/mirrors/ffmpeg.git ffmpeg-4.0.2
clone git@github.com:cine-io/android-ffmpeg-with-rtmp.git

git clone https://gitee.com/iwanghang/android-ffmpeg-with-rtmp.git

wget https://ffmpeg.org//releases/ffmpeg-4.2.10.tar.xz
wget https://ffmpeg.org//releases/ffmpeg-4.3.8.tar.xz
wget https://ffmpeg.org//releases/ffmpeg-4.4.5.tar.xz
wget https://ffmpeg.org//releases/ffmpeg-5.1.6.tar.xz
wget https://ffmpeg.org//releases/ffmpeg-6.1.2.tar.xz
wget https://ffmpeg.org/releases/ffmpeg-7.0.2.tar.xz